<!doctype html>
<!--
Copyright 2015-2021 Peter-Josef Meisch (pj.meisch@sothawo.com)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!--
    the file is read and processed by a simple engine with the following rules:
    - after the <head> tag, a <base> tag with the url of this file is inserted
    - a string of the form #PATH# ,standing alone in a row, is replaced with the content read
        from the URI that is constructed with the base url and the appended path.
-->
<html>
    <!-- opening head tag alone in a row -->
    <head>
        <meta charset="UTF-8">
        <title>sothawo MapView</title>
        <!--<link rel="stylesheet" href="ol/6.7.0/ol.css" type="text/css">-->
        <!-- replaced by: -->
        <style>
            #ol/6.7.0/ol.css#
        </style>
        <style>
            html, body { height: 100%; width: 100%; margin: 0;}
            #map { height: 100%; width: 100%; background: #ccc;}
            #markers { display: none; }
        </style>
        <!--<script src="ol/6.7.0/ol.js" type="text/javascript"></script>-->
        <!-- replaced by: -->
        <script type="text/javascript">
            #elm-pep.js#
            #polyfill.js#
            #ol/6.7.0/ol.js#
        </script>
         <style>
            #mapview.css#
            #custom_mapview.css#
         </style>
    </head>
    <body>
        <div id="map" ondragstart="javascript: return false;"></div>
        <div id="markers"></div>
        <div id="labels"></div>
        <!--<script src="projections.js" type="text/javascript"></script>-->
        <!--<script src="MapObject.js" type="text/javascript"></script>-->
        <!--<script src="WMSParams.js" type="text/javascript"></script>-->
        <!--<script src="coordinateline.js" type="text/javascript"></script>-->
        <!--<script src="mapcircle.js" type="text/javascript"></script>-->
        <!--<script src="mapview.js" type="text/javascript"></script>-->
        <!-- replaced by: -->
        <script type="text/javascript">
            #projections.js#
            #MapObject.js#
            #WMSParams.js#
            #coordinateline.js#
            #mapcircle.js#
            #mapview.js#

            // no browser context menu, markers and labels handle it separately, for the mapview itself
            // it must be caught here as ol.Map has no context menu event.
            document.getElementById('map').oncontextmenu = function (e) {
                e = e ? e : window.event;
                getJSMapView().contextmenu(e);
                if (e.preventDefault) e.preventDefault(); // For non-IE browsers.
                else return false; // For IE browsers.
            };
            </script>

    </body>
</html>
